<ul class="nav nav-secondary">
	<li class="active"><a href="">添加记账</a></li>
</ul>
<form class="form-horizontal" role="form" method="post">
	<div class="form-group">
	    <label class="col-md-2 control-label">类型：</label>
	    <div class="col-md-10">
			<label class="radio-inline"><input type="radio" name="type" value="option1" ng-model="account.type_id"> 收入</label>
			<label class="radio-inline"><input type="radio" name="type" value="option2" ng-model="account.type_id"> 支出</label>
			<label class="radio-inline"><input type="radio" name="type" value="option3" ng-model="account.type_id"> 借款</label>    
	    </div>
	</div>

	<div class="form-group">
	    <label class="col-md-2 control-label">分类：</label>
	    <div style="padding-left:195px;"class="pull-left">
		    <div class="col-md-2" ng-repeat="cat in cats" >
	        <label class="radio-inline">
	        	<input  class="btn btn-default " type="radio" name="cat" ng-model="account.cat_id" value="{{cat.id}}">{{cat.name}}
	        	<i ng-click="del(cat)" ng-model="cat.id" class="icon-remove" style="color:red;"></i>
	        </label>
	    </div>    	
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">新建分类：</label>
	    <div class="col-md-4">
			<input id="new_input" type="text"  ng-model="classe.tuition" class="form-control" placeholder="请填写">
	    </div>
	    <div class="col-md-1">
			 <button id="new_button" class="btn btn-success" type="button">新建</button>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">金额：</label>
	    <div class="col-md-2">
			<input type="text"  ng-model="account.money" class="form-control" placeholder="请填写">
	    </div>
	    <label class="col-md-1 control-label">日期：：</label>
	    <div class="col-md-2">
			<input type="text" ng-model="account.time" class="form-control form-date" placeholder="选择一个日期：yyyy-MM-dd" readonly="" value="">
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">消费人员：</label>
	    <div class="col-md-2">
			<select class="form-control pull-left tittle " ng-model="m" ng-options="m.id as (m.name+'('+m.nativeid+')') for m in model ">
			</select>
	    </div>
	    <label class="col-md-1 control-label">记录人员：</label>
	    <div class="col-md-2">
			<select class="form-control pull-left tittle " ng-model="n" ng-options="n.id as (n.name+'('+n.nativeid+')') for n in model ">
		</select>	
	    </div>
	</div>
 	<div class="form-group">
	    <label class="col-md-2 control-label">备注：</label>
	    <div class="col-md-6">
	      <textarea type="text" ng-model="account.remark" value="account.remark" class="form-control" placeholder="请填写"></textarea>
	    </div>
  	</div>
</form>	
<div  class="pull-right">
	<div style="bottom:20px; right:100px;">
		<a href="#/account"><button style="width:100px;"class="btn btn-large btn-primary">取消</button></a>
		<a href=""></a><button  ng-click="submit(account)" style="width:180px;"class="btn btn-large btn-primary">提交</button></a>
	</div>
</div>

